package com.tianshi.pxx.pojo.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;


@Data
@NoArgsConstructor
@AllArgsConstructor
public class User implements Serializable {
    private Integer id; //主键
    private String username; //用户名
    private String password; //密码
    private String email; //邮箱
    private String phone; //手机号
    private Integer status; //状态 0：禁用 1：启用
    private Double money; //余额
    private Integer orderId; //订单id(外键)

//    private LocalDateTime lastLogin; //最后登录时间
//    private LocalDateTime createTime; //注册时间

    private Date lastLogin; //最后登录时间
    private Date createTime; //注册时间
}
